Skip to main content
Version: 4.3.x {testing}

Read/write driver parameters

It is possible to read or write most of the driver parameters.

info

All here listed messages are unicast with SID = 24

warning

Payload byte position is not corresponding with byte position in transfer layer (CAN, UART, USB, bluetooth...) Before continuing, read carefully how to create a message for:

Message - read parameter with index

This command is used to obtain parameters of Driver, indexing in array is possible.

Payload byteDescription
00x02
1ID of requested parameter
2Index of the member of the array. Use 0x00 index for non-array items. Value 0xFF is reserved for error indication and can not be used for array indexing.

Response

Payload byteDescription
00x42
1ID of requested parameter
2Index of the member of the array. Use 0x00 index for non-array items. If the value is 0xFF, following two bytes contains error code.
3 -6Data. Length depend on datatype of transfered parameter. (bigendian, MSB first)

Message - write parameter with index

This command is used to change parameters of Driver. Indexing in array is possible.

Payload byteDescription
00x03
1ID of requested parameter
2Index of the member of the array. Use 0x00 index for non-array items. Value 0xFF is reserved for error indication and can not be used for array indexing.
3 -6Data. Length depend on datatype of transfered parameter. (bigendian, MSB first)

Response

Payload byteDescription
00x43
1ID of requested parameter
2Index of the member of the array. Use 0x00 index for non-array items. If the value is 0xFF, following two bytes contains error code.
3 - 4If succesfull, these bytes are omnited. Or parameter error response.

Message - read parameter with index and datatype conversion

This command is used to obtain parameters of Driver. The datatype of parameter will be converted and send with requested datatype.

Payload byteDescription
00x12
1ID of requested parameter
2Requested type code. For value 0x00 will be used native data format, if the data format is specifed, sent parameter will be converted to this format, if possible.

Response

Payload byteDescription
00x52
1ID of requested parameter
2Index of the member of the array. Use 0x00 index for non-array items. If the value is 0xFF, following two bytes contains error code.
3 -6Data. Length depend on datatype of transfered parameter. (bigendian, MSB first)

Message - write parameter with index and datatype conversion

This command is used to change parameters of Driver. The datatype of recieved parameter is in given format.

Payload byteDescription
00x13
1ID of requested parameter
2Requested type code. For value 0x00 will be used native data format, if the data format is specifed, sent parameter will be converted to this format, if possible.
3 -6Data. Length depend on datatype of transfered parameter. (bigendian, MSB first)

Response

Payload byteDescription
00x53
1ID of requested parameter
2Index of the member of the array. Use 0x00 index for non-array items. If the value is 0xFF, following two bytes contains error code.
3 - 4If succesfull, these bytes are omnited. Or parameter error response.

Datatypes code

Datatype codeDatatype
0x00not specified, use native datatype
0x01int8
0x02uint8
0x03int16
0x04uint16
0x05int32
0x06uint32
0x09float
0x0Bstring

Parameter error response

ResponseDescription
-1Parameter id out of range. (invalid value)
-2Parameter not exist
-3Variable exists, but it is not parameter (unable to write)
-4Send value is lower than parameter minimum
-5Send value is higher than parameter maximum
-6Parameter is discrete. Wrong value.

Message - read API version and driver type

Payload byteDescription
00x00

Response

Payload byteDescription
00x40
1Driver type. VECTOR = 0x20, BLDC = 0x10
2-5[uint32] Driver API version

Actual API version is 2